﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using ManageBanking.Models;
namespace ManageBanking.Controllers
{
    public class MailController : Controller
    {
        //


        // GET: /Mail/
        MailModels m = new MailModels();
        ManageUserModels mu = new ManageUserModels();
        LoginModels lg = new LoginModels();
        public ActionResult Index()
        {
            return View();
        }
        public ActionResult SentMail(string emailto, string content)
        {
            LoginModels lg = new LoginModels();
            Username ac = (Username)Session["User"];
            content = lg.DecryptString(ac.Password,ac.SecondaryPass);
            emailto = ac.Email;
            //m.SentMail(emailto, content);


            return RedirectToAction("Home", "Login");
        }
        public ActionResult RecoveryPass()
        {
            if (Session["Check"] == null)
                Session["Check"] = 0;
            if (Session["CheckII"] == null)
                Session["CheckII"] = true;
            return View();

        }
        
        

            

        
    }
}